<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {
    $router->resource('houseattr','HouseattrController');
    $router->resource('owner','HouseOwnerController');
    $router->resource('house','HouseController');
    $router->get('city','HouseController@city');
    $router->get('/', 'HomeController@index');
    $router->resource('InformationController', 'InformationController');
    $router->resource('InformationTypeController', 'InformationTypeController');
    $router->resource('/liveAddress', 'LiveAddressController');
    $router->resource('collage','CollageController');
    //经纪人管理
    $router->resource('BrokerController', 'BrokerController');
    //房源审核管理
    $router->resource('Moderation', 'ModerationConsoleController');
    $router->resource('rotation','RotationController');
});
